package com.bahiaapk.dto;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Match {

	private Long id;
	
	private Date date;
	
	private Date dateUTC;
	
	private Integer homeGoals;
	
	private Integer awayGoals;
	
	private Integer finished;
	
	private Championship championship;
	
	private Stadium stadium;
	
	private Team homeTeam;
	
	private Team awayTeam;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDateFormat(){		

		SimpleDateFormat dt = new SimpleDateFormat("dd-MM-yyyy - HH:mm",new Locale("pt_BR")); 
		return dt.format(date); 
	}

	public Date getDateUTC() {
		return dateUTC;
	}

	public String getDateUTCFormat(){
		SimpleDateFormat dt = new SimpleDateFormat("dd-MM-yyyy - HH:mm",new Locale("pt_BR")); 
		return dt.format(dateUTC); 
	}

	
	public void setDateUTC(Date dateUTC) {
		this.dateUTC = dateUTC;
	}

	public Integer getHomeGoals() {
		return homeGoals;
	}

	public void setHomeGoals(Integer homeGoals) {
		this.homeGoals = homeGoals;
	}

	public Integer getAwayGoals() {
		return awayGoals;
	}

	public void setAwayGoals(Integer awayGoals) {
		this.awayGoals = awayGoals;
	}

	public Integer getFinished() {
		return finished;
	}

	public void setFinished(Integer finished) {
		this.finished = finished;
	}

	public Championship getChampionship() {
		return championship;
	}

	public void setChampionship(Championship championship) {
		this.championship = championship;
	}

	public Stadium getStadium() {
		return stadium;
	}

	public void setStadium(Stadium stadium) {
		this.stadium = stadium;
	}

	public Team getHomeTeam() {
		return homeTeam;
	}

	public void setHomeTeam(Team homeTeam) {
		this.homeTeam = homeTeam;
	}

	public Team getAwayTeam() {
		return awayTeam;
	}

	public void setAwayTeam(Team awayTeam) {
		this.awayTeam = awayTeam;
	}
	
}
